package bomberman.util;

import java.awt.Image;
import java.awt.Toolkit;

public class GameMap {
	
	// 定义资源图片地址
	// 红绿蓝 ： 55,217,104
	public static String path_bg = "src/bomberman/image/bg_1000_700.png";
//	public static String path_bg = "src/bomberman/image/bg_450_270.png";
	public static String path_wall = "src/bomberman/image/wall.png";
	public static String path_stone = "src/bomberman/image/stone.png";
	public static String path_man = "src/bomberman/image/man_30.png";
	public static String path_enemy_normal = "src/bomberman/image/enemy_normal.png";
	public static String path_enemy_die = "src/bomberman/image/enemy_die.png";
	public static String path_bom = "src/bomberman/image/bom.png";
	public static String path_bom_m = "src/bomberman/image/bom_m.png";
	public static String path_bom_s = "src/bomberman/image/bom_s.png";
	public static String path_flame_verti = "src/bomberman/image/flame_verti.png";
	public static String path_flame_verti_m = "src/bomberman/image/flame_verti_m.png";
	public static String path_flame_verti_s = "src/bomberman/image/flame_verti_s.png";
	public static String path_flame_verti_ss = "src/bomberman/image/flame_verti_ss.png";
	public static String path_flame_horiz = "src/bomberman/image/flame_horiz.png";
	public static String path_flame_horiz_m = "src/bomberman/image/flame_horiz_m.png";
	public static String path_flame_horiz_s = "src/bomberman/image/flame_horiz_s.png";
	public static String path_flame_horiz_ss = "src/bomberman/image/flame_horiz_ss.png";
	public static String path_flame_mix = "src/bomberman/image/flame_mix.png";
	public static String path_flame_mix_m = "src/bomberman/image/flame_mix_m.png";
	public static String path_flame_mix_s = "src/bomberman/image/flame_mix_s.png";
	public static String path_flame_mix_ss = "src/bomberman/image/flame_mix_ss.png";
	public static String path_boom_b = "src/bomberman/image/boom_b.png";
	public static String path_boom_m = "src/bomberman/image/boom_m.png";
	public static String path_boom_s = "src/bomberman/image/boom_s.png";
	public static String path_pro_longer_flame = "src/bomberman/image/pro_longer_flame.png";
	public static String path_pro_more_bom = "src/bomberman/image/pro_more_bom.png";
	public static String path_pro_faster_man = "src/bomberman/image/pro_faster_man.png";
	public static String path_pro_control_bom = "src/bomberman/image/pro_control_bom.png";
	public static String path_pro_through_wall = "src/bomberman/image/pro_through_wall.png";
	public static String path_pro_through_bom = "src/bomberman/image/pro_through_bom.png";
	public static String path_pro_door = "src/bomberman/image/pro_door.png";
	
	// 定义图片
	public static Image img_bg = Toolkit.getDefaultToolkit().getImage(GameMap.path_bg);
	public static Image img_wall = Toolkit.getDefaultToolkit().getImage(GameMap.path_wall);
	public static Image img_stone = Toolkit.getDefaultToolkit().getImage(GameMap.path_stone);
	public static Image img_man = Toolkit.getDefaultToolkit().getImage(GameMap.path_man);
	public static Image img_enemy_normal = Toolkit.getDefaultToolkit().getImage(GameMap.path_enemy_normal);
	public static Image img_enemy_die = Toolkit.getDefaultToolkit().getImage(GameMap.path_enemy_die);
	public static Image[] img_enemy_array = {img_enemy_normal, img_enemy_die};
	public static Image img_bom = Toolkit.getDefaultToolkit().getImage(GameMap.path_bom);
	public static Image img_bom_m = Toolkit.getDefaultToolkit().getImage(GameMap.path_bom_m);
	public static Image img_bom_s = Toolkit.getDefaultToolkit().getImage(GameMap.path_bom_s);
	public static Image[] img_bom_array = {img_bom, img_bom_m, img_bom_s};
	// flame b:14px  m:10px  s:8px  ss:4px
	public static Image img_flame_verti = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_verti);
	public static Image img_flame_verti_m = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_verti_m);
	public static Image img_flame_verti_s = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_verti_s);
	public static Image img_flame_verti_ss = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_verti_ss);
	public static Image img_flame_horiz = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_horiz);
	public static Image img_flame_horiz_m = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_horiz_m);
	public static Image img_flame_horiz_s = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_horiz_s);
	public static Image img_flame_horiz_ss = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_horiz_ss);
	public static Image img_flame_mix = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_mix);
	public static Image img_flame_mix_m = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_mix_m);
	public static Image img_flame_mix_s = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_mix_s);
	public static Image img_flame_mix_ss = Toolkit.getDefaultToolkit().getImage(GameMap.path_flame_mix_ss);
	public static Image[] img_flame_verti_array = {img_flame_verti, img_flame_verti_m, img_flame_verti_s, img_flame_verti_ss};
	public static Image[] img_flame_horiz_array = {img_flame_horiz, img_flame_horiz_m, img_flame_horiz_s, img_flame_horiz_ss};
	public static Image[] img_flame_mix_array = {img_flame_mix, img_flame_mix_m, img_flame_mix_s, img_flame_mix_ss};
	public static Image img_boom_b = Toolkit.getDefaultToolkit().getImage(GameMap.path_boom_b);
	public static Image img_boom_m = Toolkit.getDefaultToolkit().getImage(GameMap.path_boom_m);
	public static Image img_boom_s = Toolkit.getDefaultToolkit().getImage(GameMap.path_boom_s);
	public static Image[] img_boom_array = {img_boom_b, img_boom_m, img_boom_s};
	public static Image img_pro_longer_flame = Toolkit.getDefaultToolkit().getImage(GameMap.path_pro_longer_flame);
	public static Image img_pro_more_bom = Toolkit.getDefaultToolkit().getImage(GameMap.path_pro_more_bom);
	public static Image img_pro_faster_man = Toolkit.getDefaultToolkit().getImage(GameMap.path_pro_faster_man);
	public static Image img_pro_control_bom = Toolkit.getDefaultToolkit().getImage(GameMap.path_pro_control_bom);
	public static Image img_pro_through_wall = Toolkit.getDefaultToolkit().getImage(GameMap.path_pro_through_wall);
	public static Image img_pro_through_bom = Toolkit.getDefaultToolkit().getImage(GameMap.path_pro_through_bom);
	public static Image img_pro_door = Toolkit.getDefaultToolkit().getImage(GameMap.path_pro_door);
	public static Image[] img_pro_array = {img_pro_longer_flame, img_pro_more_bom, img_pro_faster_man, img_pro_control_bom, img_pro_through_wall, img_pro_through_bom, img_pro_door};
	
	
	
	// 定义地图元素： 0-空白，1-人， 2-砖（可炸）， 3-墙（不可炸）， 4-敌人
	public static int ele_blank = 0;
	public static int ele_man = 1;
	public static int ele_wall = 2;
	public static int ele_stone = 3;
	
	// max：750*450 —> 25*15
	public static int[][] map = { 
  								  { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 },							
								  { 3, 1, 0, 2, 2, 2, 0, 2, 2, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3 },
								  { 3, 0, 3, 0, 3, 0, 3, 4, 3, 0, 3, 2, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3 },
								  { 3, 0, 0, 2, 2, 0, 0, 2, 0, 2, 0, 2, 0, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3 },
								  { 3, 0, 3, 0, 3, 4, 3, 2, 3, 2, 3, 0, 3, 2, 3, 2, 3, 0, 3, 0, 3, 0, 3, 0, 3 },
								  { 3, 0, 0, 4, 2, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 3 },
								  { 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 4, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3 },
								  { 3, 0, 0, 2, 0, 0, 0, 4, 2, 0, 2, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 3 },
								  { 3, 0, 3, 2, 3, 2, 3, 0, 3, 0, 3, 0, 3, 2, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3 },
								  { 3, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3 },
								  { 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3 },
								  { 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3 },
								  { 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3 },
								  { 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3 },
								  { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }
								  };

	
	
	
	
	// size: 450*270 -> 15*9
//	public static int[][] map = { { 1, 0, 2, 2, 2, 0, 2, 2, 2, 0, 2, 0, 0, 0, 0 },
//		{ 0, 3, 0, 3, 0, 3, 4, 3, 0, 3, 2, 3, 0, 3, 0 },
//		{ 0, 0, 2, 2, 0, 0, 2, 0, 2, 0, 2, 0, 2, 4, 0 },
//		{ 0, 3, 0, 3, 4, 3, 2, 3, 2, 3, 0, 3, 2, 3, 2 },
//		{ 0, 0, 4, 2, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2 },
//		{ 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 4, 3, 0, 3, 0 },
//		{ 0, 0, 2, 0, 0, 0, 4, 2, 0, 2, 0, 0, 0, 2, 2 },
//		{ 0, 3, 2, 3, 2, 3, 0, 3, 0, 3, 0, 3, 2, 3, 0 },
//		{ 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0 } };

	
}
